package com.vgooo.bean;

import java.io.Serializable;
import java.util.List;

/**
 * 新闻首页列表信息
 * @author Administrator
 *
 */
public class NewListInfo implements Serializable {
	public final static String NEWS_TYPE_NEWS = "news" ;
	public final static String NEWS_TYPE_ALBUM = "album" ;
	public final static String NEWS_TYPE_VIDEO = "video" ;
	
	
	public String newsType ;//news 为普通新闻  album 为图赏
	public String news_id ; //=11094,
	public String news_title ; //=南极最强手机？将Nexus 4放入冰箱跑分 成绩大幅提升,
	public String news_source ; //=evolife,
	public String news_thumbnail ; //=http://upload3.vgooo.com/images/2012/11/15/newsmallthumbnail/1352962107.jpg,
	public String news_abstract ;//=虽然很多手机品牌喜欢使用“发烧”这样的字眼来宣传自己的手机
	public String  news_ping ; //=6
	public String  news_time ; //发表时间
	public String  news_views ; //也读次数
	public String  v_source_url ; //视频链接地址\
	public List<String> picture ;
	@Override
	public String toString() {
		return "NewListInfo [newsType=" + newsType + ", news_id=" + news_id
				+ ", news_title=" + news_title + ", news_source=" + news_source
				+ ", news_thumbnail=" + news_thumbnail + ", news_abstract="
				+ news_abstract + ", news_ping=" + news_ping + ", news_time="
				+ news_time + ", news_views=" + news_views + ", v_source_url="
				+ v_source_url + ", picture=" + picture + "]";
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((newsType == null) ? 0 : newsType.hashCode());
		result = prime * result
				+ ((news_abstract == null) ? 0 : news_abstract.hashCode());
		result = prime * result + ((news_id == null) ? 0 : news_id.hashCode());
		result = prime * result
				+ ((news_ping == null) ? 0 : news_ping.hashCode());
		result = prime * result
				+ ((news_source == null) ? 0 : news_source.hashCode());
		result = prime * result
				+ ((news_thumbnail == null) ? 0 : news_thumbnail.hashCode());
		result = prime * result
				+ ((news_time == null) ? 0 : news_time.hashCode());
		result = prime * result
				+ ((news_title == null) ? 0 : news_title.hashCode());
		result = prime * result
				+ ((news_views == null) ? 0 : news_views.hashCode());
		result = prime * result + ((picture == null) ? 0 : picture.hashCode());
		result = prime * result
				+ ((v_source_url == null) ? 0 : v_source_url.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		NewListInfo other = (NewListInfo) obj;
		if (newsType == null) {
			if (other.newsType != null)
				return false;
		} else if (!newsType.equals(other.newsType))
			return false;
		if (news_abstract == null) {
			if (other.news_abstract != null)
				return false;
		} else if (!news_abstract.equals(other.news_abstract))
			return false;
		if (news_id == null) {
			if (other.news_id != null)
				return false;
		} else if (!news_id.equals(other.news_id))
			return false;
		if (news_ping == null) {
			if (other.news_ping != null)
				return false;
		} else if (!news_ping.equals(other.news_ping))
			return false;
		if (news_source == null) {
			if (other.news_source != null)
				return false;
		} else if (!news_source.equals(other.news_source))
			return false;
		if (news_thumbnail == null) {
			if (other.news_thumbnail != null)
				return false;
		} else if (!news_thumbnail.equals(other.news_thumbnail))
			return false;
		if (news_time == null) {
			if (other.news_time != null)
				return false;
		} else if (!news_time.equals(other.news_time))
			return false;
		if (news_title == null) {
			if (other.news_title != null)
				return false;
		} else if (!news_title.equals(other.news_title))
			return false;
		if (news_views == null) {
			if (other.news_views != null)
				return false;
		} else if (!news_views.equals(other.news_views))
			return false;
		if (picture == null) {
			if (other.picture != null)
				return false;
		} else if (!picture.equals(other.picture))
			return false;
		if (v_source_url == null) {
			if (other.v_source_url != null)
				return false;
		} else if (!v_source_url.equals(other.v_source_url))
			return false;
		return true;
	}
	
	
	


	
}
